﻿using GPSTrackingDBV2.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;


namespace GPSTrackingWebsiteManager.StockFilesManagerService
{    
    [ServiceContract]
    public interface IStockFilesManagerService
    {
        [OperationContract]
        [WebInvoke(BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json, Method = "GET", UriTemplate = "/GetStockFile?companyId={companyId}&stockFileID={stockFileID}")]
        byte[] GetStockFile(int companyID, int stockFileID);

        [OperationContract]
        [WebInvoke(BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json, Method = "GET", UriTemplate = "/DeleteStockItems?companyId={companyId}&imageName={imageName}&pdfName={pdfName}")]
        void DeleteStockItems(int companyID, string imageName, string pdfName);

        [OperationContract]        
        byte[] GetCompanyLogo(int companyID);

        [OperationContract] 
        byte[] GetCompanyLogoBySerial(string serial);

        [OperationContract]
        byte[] GetStockImage(int companyID, int stockID);
    }
}
